﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;


namespace EventManager
{
    public partial class ReadMessagePage : PhoneApplicationPage
    {
        public ReadMessagePage()
        {
            InitializeComponent();
            //Loaded += new RoutedEventHandler(MessageRead_Loaded);
        }


        private void ViewMessage_Loaded(object sender, RoutedEventArgs e)
        {
            
            //use get/set methods here to set date, from & text from sql server
            //use default values for nwo
            List<MessageRead> message_readList = new List<MessageRead>();
            String date = "4/21/11";
            String from = "Juice";
            String text = "hey what up";
                        
            message_readList.Add(new MessageRead(date, from, text));
            MessageReadList.ItemsSource = message_readList;

            
        }



    }
}